package com.ouyy.volunteerservice.volunteer.domain.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName("volunteer_rating") // 指定数据库表名
public class VolunteerRating {

    @TableId(value = "id", type = IdType.AUTO) // 主键自增
    private Integer id;

    @TableField("volunteer_id")
    private Integer volunteerId; // 志愿者ID

    @TableField("organization_id")
    private Integer organizationId; // 组织ID

    @TableField("rating")
    private Integer rating; // 评分 (0-5)

    @TableField("rating_date")
    private Timestamp ratingDate; // 评分时间 (自动填充数据库时间)
}
